package com.hunan.yllxy.vo;

/**
 * @Author: 刘华
 * @Date: 2021/5/31 11:47
 * @Version 1.0
 */
public class PageResult {
    private Object data;
    private Integer pageNum;
    private Integer pageSize;
    private Integer total;
    private Integer totalPage = 0;

    public PageResult(Object data, Integer pageNum, Integer pageSize, Integer total) {
        this.data = data;
        this.pageNum = pageNum;
        this.pageSize = pageSize;
        this.total = total;
    }

    public PageResult(Object data, Integer pageNum, Integer pageSize, Integer total, Integer totalPage) {
        this.data = data;
        this.pageNum = pageNum;
        this.pageSize = pageSize;
        this.total = total;
        this.totalPage = totalPage;
    }

    public PageResult() {
    }

    public Integer getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(Integer totalPage) {
        this.totalPage = totalPage;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
}
